import 'package:flutter/material.dart';

class OrderItemCase extends StatelessWidget {
  const OrderItemCase({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: 400,
      padding: const EdgeInsets.all(20),
      decoration: BoxDecoration(
        color: const Color.fromARGB(255, 255, 255, 255),
        borderRadius: BorderRadius.circular(20),
      ),
      child:  Column(
        children:  [
          const Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Text('2025-8-23 10:06:10'),
              Text('待发货',style: TextStyle(color: Color.fromARGB(255, 224, 164, 73)),),
            ],
          ),
          const SizedBox(height: 10,),
          Row(
            children: [
              Image.network(
                'https://yanxuan-item.nosdn.127.net/a09de222ed32efa8ffe359b1d5780574.jpg',
                width: 100,
                ),
                const SizedBox(width: 10,),
                Expanded(
                  child:  Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [
                      const Row(
                        children: [
                          Expanded(
                            child: 
                            Text('茶水分离杯耐热隔热玻璃杯 茶水分离杯耐热隔热玻璃杯',
                            maxLines: 2,
                            overflow: TextOverflow.ellipsis,
                            ),
                          ),
                          SizedBox(width: 10,),
                          Text('x2'),
                        ],
                      ),
                     const SizedBox(height: 10,),
                      Container(
                        padding: const EdgeInsets.all(2),
                        decoration:  BoxDecoration(
                          color:Color.fromARGB(255, 243, 243, 243),
                          borderRadius: BorderRadius.circular(2),
                        ),
                        child: const Text(
                          '规格:白色240ml',
                          style: TextStyle(color: Color.fromARGB(255, 156, 155, 155)),),
                        ),
                     const SizedBox(height: 10,),
                     const Text('¥200.0')
                    ],
                  ),
                ),
            ],
          ),
           SizedBox(
            width: double.infinity,
             child: Column(
              crossAxisAlignment: CrossAxisAlignment.end,            
              children: [
                    const Text('合计: ¥400.0'),
                    const SizedBox(height: 10,),
                    Container(
                      padding: const EdgeInsets.symmetric(vertical: 5,horizontal: 3),
                      decoration: BoxDecoration(
                        border: Border.all(
                          color: Colors.black,
                          width: 1,
                        ),
                        borderRadius: BorderRadius.circular(2),
                      ),
                      child:const Text('再次购买')
                    ),
                  ],
               ),
           )
        ],
      ),
    );
  }
}